package com.wandian.game
{
	
	import flash.display.Sprite;
	import com.wandian.game.frames.LoginFrame;
	/**
	 * 游戏容器
	 * 
	 */
	public class GameContainer extends Sprite
	{	
		private var gameFrame:Sprite
		/**
		 * 
		 * @default 
		 */
		public var loginFrame:LoginFrame=new LoginFrame();
		/**
		 * 
		 */
		public function GameContainer()
		{
			super();
			this.addChild(loginFrame)
		}
		/**
		 * 
		 * @param frame
		 */
		public function setGameFrame(frame:Sprite):void{
			this.gameFrame=frame
		}
		/**
		 * 
		 */
		public function switchToGameFrame():void{
			this.removeChild(loginFrame);
			this.addChild(gameFrame);
		}
	}
}